class WirelesstmBean {
  String name;
  List<TemperatureItem> tempList;

  WirelesstmBean(String name, List tempList){
    this.name = name;
    List<TemperatureItem> list = new List();
    for(Map data in tempList){
      list.add(TemperatureItem.fromJson(data));
    }
    this.tempList = list;
  }

  @override
  String toString() {
    return 'WirelesstmBean{name: $name, tempList: $tempList}';
  }
}


class TemperatureItem {
  int communicationStatus;
  String createTime;
  String equipmentId;
  String equipmentName;
  String equipmentPositionId;
  String equipmentPositionName;
  String id;
  String itemName;
  String name;
  String sensorId;
  String sensorItemId;
  double temperature;

  TemperatureItem(
      {this.communicationStatus,
        this.createTime,
        this.equipmentId,
        this.equipmentName,
        this.equipmentPositionId,
        this.equipmentPositionName,
        this.id,
        this.itemName,
        this.name,
        this.sensorId,
        this.sensorItemId,
        this.temperature});

  TemperatureItem.fromJson(Map<String, dynamic> json) {
    communicationStatus = json['communicationStatus'];
    createTime = json['createTime'];
    equipmentId = json['equipmentId'];
    equipmentName = json['equipmentName'];
    equipmentPositionId = json['equipmentPositionId'];
    equipmentPositionName = json['equipmentPositionName'];
    id = json['id'];
    itemName = json['itemName'];
    name = json['name'];
    sensorId = json['sensorId'];
    sensorItemId = json['sensorItemId'];
    temperature = json['temperature'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['communicationStatus'] = this.communicationStatus;
    data['createTime'] = this.createTime;
    data['equipmentId'] = this.equipmentId;
    data['equipmentName'] = this.equipmentName;
    data['equipmentPositionId'] = this.equipmentPositionId;
    data['equipmentPositionName'] = this.equipmentPositionName;
    data['id'] = this.id;
    data['itemName'] = this.itemName;
    data['name'] = this.name;
    data['sensorId'] = this.sensorId;
    data['sensorItemId'] = this.sensorItemId;
    data['temperature'] = this.temperature;
    return data;
  }

  @override
  String toString() {
    return 'TemperatureItem{communicationStatus: $communicationStatus, createTime: $createTime, equipmentId: $equipmentId, equipmentName: $equipmentName, equipmentPositionId: $equipmentPositionId, equipmentPositionName: $equipmentPositionName, id: $id, itemName: $itemName, name: $name, sensorId: $sensorId, sensorItemId: $sensorItemId, temperature: $temperature}';
  }
}




